﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using OrganizedIN.DAL;
using OrganizedIN.BAL;
using OrganizedIN.BussinessServices;
using System.Data.SqlClient;
using Microsoft.ApplicationBlocks.Data;
using OrganizedIN.BAL.Common;
using System.IO;
using System.Diagnostics;

namespace OrganizedIN.UI.Videos
{
    public partial class M_search_my_videos : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                //lblTodayDate.Text = String.Format("{0:D}", dt);

                strUserName = Session["UserID"].ToString();

                if (!IsPostBack)
                {
                    BindList();
                }
            }
            catch (Exception ex)
            {
            }
        }
        public void BindList()
        {
            try
            {
                DataSet ds = new DataSet();
                //ds = Common.Get_Todo_SearchResult(strUserName, "", "", "", 0, "0");
                ds = Common.Get_Video_Search_List(strUserName);

                gvVideoList.DataSource = ds.Tables[0];
                gvVideoList.DataBind();
                if (ds.Tables[0].Rows.Count > 0)
                {
                    //lblErrMsg.Text = "";
                }
                else
                {
                    //lblErrMsg.Text = "No record(s) found.";
                }
            }
            catch (Exception ex)
            {
                //lblErrMsg.Text = ex.ToString();
            }
        }



    }
}
